package cn.dengqiang.org.service.impl;

import cn.dengqiang.basic.service.impl.BaseServiceImpl;
import cn.dengqiang.org.domain.Department;
import cn.dengqiang.org.domain.SystemDictionarydetail;
import cn.dengqiang.org.domain.SystemDictionarytype;
import cn.dengqiang.org.mapper.SystemDictionarydetailMapper;
import cn.dengqiang.org.mapper.SystemDictionarytypeMapper;
import cn.dengqiang.org.service.ISystemDictionarytypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(propagation = Propagation.SUPPORTS,readOnly = true)
public class SystemdictionarytypeServiceImpl extends BaseServiceImpl<SystemDictionarytype> implements ISystemDictionarytypeService {

    @Autowired
    private SystemDictionarytypeMapper systemDictionarytypeMapper;

    @Autowired
    private SystemDictionarydetailMapper systemDictionarydetailMapper;


//    @Override
//    public void del(Long id) {
//        List<SystemDictionarydetail> all = systemDictionarydetailMapper.findAll(id);
//        for (SystemDictionarydetail systemDictionarydetail : all) {
//            Long id1 = systemDictionarydetail.getId();
//            super.del(id1);
//        }
//        systemDictionarytypeMapper.remove(id);
//    }

    @Override
    public void batchDel(List<Long> ids) {

    }

    @Override
    public List<Department> queryDeptTree() {
        return null;
    }
}
